import QtQuick 2.15
import QtQuick.Window 2.15
import QtQuick.Controls 2.15
import Backend 1.0

ApplicationWindow {
    id: mainWind
    width: 500
    height: 500
    // TODO: 开启全屏
    minimumWidth: 500
    minimumHeight: 500
    visible: true
    title: qsTr("AQS Desktop Component")

    // 特定App菜单
    ApplicationView {
        id: mainMenu
        // 修改Model类型为特定
        mtype: AppDataModel.SPECIAL

        width: parent.width
        height: parent.height

        anchors.left: parent.left
        anchors.top: parent.top
    }

    // 全局App菜单
    ChoiceMenu {
        id: choiceMenu
    }

    // 底部按钮（控制全局菜单弹出）
    RoundButton {
        id: menuShowBtn
        text: qsTr("+")
        width: 50
        height: 50
        font.pixelSize: 25
        highlighted: true
        x:parent.width - 80
        y: parent.height - 80
        onClicked: {
            choiceMenu.showChoiceMenu()
        }
    }
}
